extends "res://singletons/run_data.gd"

var _starting_items:Array = []

func _ready():
	_starting_items.clear()

func reset(restart:bool = false)->void :
	.reset(restart)

	if restart:
		apply_starting_items()
	else:
		_starting_items.clear()
		
		
func add_starting_item(item:ItemData)->void :
	_starting_items.append(item)

func apply_starting_items()->void:
	
	for item in _starting_items:
		add_item(item)
		# add 10 enemies of all
		RunData.add_stat("number_of_enemies", 10)
		

